<div data-dux="table-bind">
    <div class="dux-page-header uk-clearfix">
        <div class="page-title">
            <form class="dux-form uk-form  uk-form-inline" method="get" action="{url()}">
                <div class="uk-form-group">
                    <input type="text" name="keyword" class="uk-form-field" value="{$pageMaps.keyword}"
                           placeholder="搜索">
                </div>
                <div class="uk-form-group">
                    <button type="submit" class="uk-button uk-button-primary"><i class="fa fa-search"></i></button>
                </div>
            </form>
        </div>
        <div class="page-action">
            <a class="uk-button uk-button-primary" href="{url('add')}">添加</a>
        </div>
    </div>
    <div class="dux-page-table">
        <table class="uk-table  uk-table-responsive  uk-table-striped uk-table-hover uk-table-middle dux-table" data-table>
            <thead>
            <tr>
                <th width="160">#</th>
                <th>模板名称</th>
                <th>首重</th>
                <th>续重</th>
                <th>保价</th>
                <th class="uk-text-center" width="120">管理</th>
            </tr>
            </thead>
            <tbody>
            <!--loop{$list as $vo}-->
            <tr>
                <td>
                    {$vo.delivery_id}
                </td>
                <td>
                    {$vo.name}
                </td>
                <td>
                    {$vo.first_price}元
                    /
                    {$vo.first_weight}g
                </td>
                <td>
                    {$vo.second_price}元
                    /
                    {$vo.second_weight}g
                </td>
                <td class="{$vo.support_status ? 'uk-text-success' : 'uk-text-danger'} ">
                    {$vo.support_rate}元
                    /
                    {$vo.support_price}g
                </td>
                <td class="uk-text-center">
                    <a class="uk-button uk-button-primary uk-button-small"
                       href="{url('edit', ['id'=>$vo['delivery_id']])}" title="编辑"><i
                            class="fa fa-pencil"></i></a>
                    <a class="uk-button uk-button-danger uk-button-small" href="javascript:;"
                       data-url="{url('del')}" data-id="{$vo.delivery_id}" title="删除" data-del><i
                            class=" fa fa-trash"></i></a>
                </td>
            </tr>
            <!--{/loop}-->
            </tbody>
        </table>
    </div>
    <div class="dux-page-foot uk-clearfix">
        {$page}
    </div>
</div>